Skip to content
This repository was archived by the owner on Apr 24, 2021. It is now read-only.

Commit 3d7d8e4

Browse files
committed
Remove code for the server, and dead code resulting.
1 parent 505d2e4 commit 3d7d8e4

19 files changed

+24
-1480
lines changed

src/BasicServer.re

Lines changed: 0 additions & 155 deletions
This file was deleted.

src/CodeLens.re

Lines changed: 0 additions & 99 deletions
This file was deleted.

src/Files.re

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ let relpath = (base, path) =>
5252
};
5353

5454
let maybeStat = path =>
55-
try (Some(Unix.stat(path))) {
55+
try(Some(Unix.stat(path))) {
5656
| Unix.Unix_error(Unix.ENOENT, _, _) => None
5757
};
5858

@@ -100,7 +100,7 @@ let ifExists = path => exists(path) ? Some(path) : None;
100100

101101
let readDirectory = dir => {
102102
let maybeGet = handle =>
103-
try (Some(Unix.readdir(handle))) {
103+
try(Some(Unix.readdir(handle))) {
104104
| End_of_file => None
105105
};
106106
let rec loop = handle =>
@@ -120,16 +120,6 @@ let readDirectory = dir => {
120120
};
121121
};
122122

123-
let rec mkdirp = dest =>
124-
if (!exists(dest)) {
125-
let parent = Filename.dirname(dest);
126-
mkdirp(parent);
127-
Unix.mkdir(dest, 0o740);
128-
if (!exists(dest)) {
129-
failwith("Unable to create " ++ dest);
130-
};
131-
};
132-
133123
let rec collectDirs = path => {
134124
switch (maybeStat(path)) {
135125
| None => []

src/JsonShort.re

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ let o = o => Object(o);
33
let s = s => String(s);
44
let i = i => Number(float_of_int(i));
55
let l = l => Array(l);
6-
let t = True;
76
let null = Null;

src/Log.re

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,7 @@
1-
let out = ref(None);
2-
3-
let setLocation = location => {
4-
switch (out^) {
5-
| None => ()
6-
| Some(out) => close_out(out)
7-
};
8-
output_string(stderr, "Setting log location: " ++ location ++ "\n");
9-
flush(stderr);
10-
out := Some(open_out(location));
11-
};
12-
131
let spamError = ref(false);
142

15-
let log = msg => {
3+
let log = msg =>
164
if (spamError^) {
175
output_string(stderr, msg ++ "\n");
186
flush(stderr);
197
};
20-
switch (out^) {
21-
| None => ()
22-
| Some(out) =>
23-
output_string(out, msg ++ "\n");
24-
flush(out);
25-
};
26-
};

src/MerlinFile.re

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
let debug = ref(false);
2-
31
let parseMerlin = text => {
42
let lines = Str.split(Str.regexp_string("\n"), text);
53
List.fold_left(

src/MerlinFile.rei

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
let debug: ref(bool);
21
let getFlags: string => result(list(string), string);

0 commit comments

Comments
 (0)