Skip to content

Commit 1138817

Browse files
author
David Sheldrick
committed
remove unused console logs
1 parent 00e22df commit 1138817

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/patch/apply.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff 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
}

src/patch/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)