Skip to content

Commit

Permalink
Removed unused function "findFnNameInDebugString( )"
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Jan 9, 2025
1 parent 9dc271f commit f622a50
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions public/go.html
Original file line number Diff line number Diff line change
Expand Up @@ -13942,26 +13942,6 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
}
return { found: found , fileName: foundFile, lineNumber: lineNumberOfSearchItem, lineText: foundLine , context: surroundingLines }
},
findFnNameInDebugString: function ( { line , dbg }) {
let indexOfDbgId = line.indexOf(dbg)

if (indexOfDbgId == null) {
return null
}
let initialString=line.substring(0,indexOfDbgId)
let lastParan = initialString.lastIndexOf("(")

let secondString=initialString.substring(0,lastParan)
let lastPeriod = secondString.lastIndexOf(".")
let lastSpace = secondString.lastIndexOf(" ")
let lastSemicolon = secondString.lastIndexOf(";")
let lastDelimeter = lastPeriod
if (lastSpace > lastPeriod) {lastDelimeter = lastSpace}
if (lastSemicolon > lastPeriod) {lastDelimeter = lastSemicolon}
let functionNameString = secondString.substring(lastDelimeter+1,lastParan)
//let sourceForFunction = yz.debug.internal.findSourceLineInCode(functionNameString + ":")
return functionNameString
},
getCallStack: function ( ) {
// Create an Error object to get the stack trace
const error = new Error();
Expand Down

0 comments on commit f622a50

Please sign in to comment.