Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 0 additions & 50 deletions src/DTreeView.re

This file was deleted.

29 changes: 0 additions & 29 deletions src/Menu.re

This file was deleted.

20 changes: 0 additions & 20 deletions src/bindings/dOMParser.ml

This file was deleted.

7 changes: 0 additions & 7 deletions src/bindings/dOMParser.mli

This file was deleted.

3 changes: 2 additions & 1 deletion src/state/gvDisplay.ml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type func = Func.t

type t = File of file | Func of func

let file ~path ?contents () = File (File.make ~path ?contents ())
let file ~path ?contents () = File (File.make ~path ?contents ()) (* TODO: contents argument never used *)

(* TODO: unused *)
let func ~name ~file ?dot () = Func (Func.make ~name ~file ?dot ())
2 changes: 1 addition & 1 deletion src/state/gvGoblint.ml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ let unmarshal spec cil =
let (module G : Sig) =
(module Make (Cfg) (Spec)
(struct
let increment = Analyses.empty_increment_data cil
let increment = Analyses.empty_increment_data ()
end))
in
G.wrap_solver_state ()
8 changes: 0 additions & 8 deletions src/state/gvInspect.ml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
module Line = struct
type t = string * int

let empty = ("", -1)

let make file num = (file, num)

let valid (_, n) = n != -1

let of_location (loc : Cil.location) = (loc.file, loc.line)
end

Expand All @@ -22,6 +16,4 @@ type t = Line of line | Node of node

let line file num = Line (file, num)

let line_num = function Line ((_, n) as line) when Line.valid line -> Some n | _ -> None

let node id = Node id
1 change: 1 addition & 0 deletions src/state/gvMessages.ml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ end

type t = Message.t list

(* TODO: unused *)
let filter_by_line (file, line) =
let pred msg =
match Message.location msg with
Expand Down
4 changes: 2 additions & 2 deletions src/state/search.ml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Query = struct
type error = ParseError of string

let create ?(kind = CodeQuery.Var_k) ?(target = CodeQuery.Name_t "") ?(find = CodeQuery.Uses_f)
?(structure = CodeQuery.None_s) ?(limitation = CodeQuery.None_c) ?(expression = "")
?(structure = CodeQuery.None_s) ?(limitation = CodeQuery.None_c) ?(expression = "") (* TODO: limitation argument never used *)
?(mode = `Must) () : t =
{ kind; target; find; structure; limitation; expression; mode }

Expand All @@ -30,7 +30,7 @@ module Query = struct
let execute (q : t) cil =
if is_semantic q then (
ExpressionEvaluation.gv_query := Some q;
Maingoblint.do_analyze (Analyses.empty_increment_data cil) cil;
Maingoblint.do_analyze (Analyses.empty_increment_data ()) cil;
let results = !ExpressionEvaluation.gv_results in
let pred =
if q.mode = `Must then snd %> Option.default false else snd %> Option.default true
Expand Down
8 changes: 0 additions & 8 deletions src/ui/base/form.re

This file was deleted.

37 changes: 0 additions & 37 deletions src/ui/base/mappedInput.re

This file was deleted.

1 change: 1 addition & 0 deletions src/utils/httpClient.ml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ let get url =
(fun () -> Lwt.return (Error NoContentAvailable))
(fun c -> Lwt.return (Ok (Typed_array.String.of_arrayBuffer c)))

(* TODO: unused *)
let get_opt url = get url >>= fun resp -> Lwt.return (Result.to_option resp)

let on_get f url =
Expand Down
59 changes: 0 additions & 59 deletions src/utils/xml.ml

This file was deleted.

15 changes: 0 additions & 15 deletions src/utils/xmlParser.ml

This file was deleted.