Skip to content

Commit

Permalink
Remove unused sprintf function in the compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
RX14 authored and jhass committed Jan 4, 2018
1 parent 501e3ba commit 6780faf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/compiler/crystal/codegen/codegen.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2066,10 +2066,6 @@ module Crystal
end

class Program
def sprintf(llvm_mod, llvm_context)
llvm_mod.functions["sprintf"]? || llvm_mod.functions.add("sprintf", [llvm_context.void_pointer], llvm_context.int32, true)
end

def printf(llvm_mod, llvm_context)
llvm_mod.functions["printf"]? || llvm_mod.functions.add("printf", [llvm_context.void_pointer], llvm_context.int32, true)
end
Expand Down

0 comments on commit 6780faf

Please sign in to comment.