浏览代码

removed obsolete s_const in matcher.ml

Simon Krajewski 12 年之前
父节点
当前提交
ac2e51169a
共有 1 个文件被更改,包括 0 次插入9 次删除
  1. 0 9
      matcher.ml

+ 0 - 9
matcher.ml

@@ -170,15 +170,6 @@ let rec s_expr_small e = match e.eexpr with
 	| TBlock [] -> "{}"
 	| _ -> s_expr (s_type) e
 
-let s_const = function
-	| TInt i -> Int32.to_string i
-	| TFloat s -> s ^ "f"
-	| TString s -> Printf.sprintf "\"%s\"" (Ast.s_escape s)
-	| TBool b -> if b then "true" else "false"
-	| TNull -> "null"
-	| TThis -> "this"
-	| TSuper -> "super"
-
 let s_con con = match con.c_def with
 	| CEnum(_,ef) -> ef.ef_name
 	| CConst TNull -> "_"