File tree Expand file tree Collapse file tree 2 files changed +0
-11
lines changed
Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -110,12 +110,6 @@ function applyPatch({ parts, path }: FilePatch): Effect {
110110 }
111111
112112 if ( part . type === "deletion" ) {
113- // console.log("bill deleter", fileLines, part.lines)
114- // console.log(
115- // "splicin'",
116- // contextIndex - part.lines.length,
117- // part.lines.length,
118- // )
119113 fileLines . splice (
120114 contextIndex - part . lines . length ,
121115 part . lines . length ,
@@ -135,21 +129,18 @@ function applyPatch({ parts, path }: FilePatch): Effect {
135129 noNewlineAtEndOfFile = false
136130 }
137131 }
138- // console.log("bill deleted", fileLines, part.lines)
139132 } else {
140133 if ( contextIndex >= fileLines . length ) {
141134 noNewlineAtEndOfFile = part . noNewlineAtEndOfFile
142135 }
143136 }
144137 break
145138 case "insertion" :
146- // console.log("inserting", fileLines, part.lines)
147139 fileLines . splice ( contextIndex , 0 , ...part . lines )
148140 contextIndex += part . lines . length
149141 if ( contextIndex >= fileLines . length ) {
150142 noNewlineAtEndOfFile = part . noNewlineAtEndOfFile
151143 }
152- // console.log("done", fileLines, part.lines)
153144 break
154145 }
155146 }
Original file line number Diff line number Diff line change @@ -16,7 +16,5 @@ export function patch(
1616 patch = reversePatch ( patch )
1717 }
1818
19- // console.dir(patch, {depth: 5})
20-
2119 return applyPatchFile ( patch )
2220}
You can’t perform that action at this time.
0 commit comments