Skip to content

Commit

Permalink
Code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdp committed Jan 13, 2025
1 parent 1ae302f commit e127312
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions framework/src/source/MochaTestReporter.bs
Original file line number Diff line number Diff line change
Expand Up @@ -478,16 +478,6 @@ namespace rooibos
end for

value = newValue

' value = arrayMap(value, function(value, i)
' oldValue = oldString[oldPos + i]
' if len(oldValue) > len(value)
' return oldValue
' else
' return value
' end if
' end function)

component.value = diff.join(value)
else
component.value = diff.join(newString.slice(newPos, newPos + component.count))
Expand All @@ -512,7 +502,6 @@ namespace rooibos
' bs:disable-next-line
diff: function(oldString, newString, options = {})
Infinity = 2147483647
self = m

oldString = m.removeEmpty(m.tokenize(oldString, options))
newString = m.removeEmpty(m.tokenize(newString, options))
Expand Down Expand Up @@ -794,7 +783,7 @@ namespace rooibos
' for i = 0 to linesAndNewlines.count() - 1
' line = linesAndNewlines[i]

' if i mod 2 and not options.newlineIsToken = true then
' if i mod 2 and not options.newlineIsToken = true
' retLines[retLines.count() - 1] = retLines[retLines.count() - 1] + line
' else
' retLines.push(line)
Expand Down

0 comments on commit e127312

Please sign in to comment.