summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-01-29 11:59:52 +0100
committerAndrej Mihajlov <and@mullvad.net>2018-01-29 11:59:52 +0100
commitb90a42c33cd3f7c732d0f5d9233facc90bebcac0 (patch)
tree762fe7ce9f075b763833dd93d8e54127b1c7ecf7
parent7c5a422f10dcdb25531dc6dd12d6c66b28d0be35 (diff)
downloadmullvadvpn-b90a42c33cd3f7c732d0f5d9233facc90bebcac0.tar.xz
mullvadvpn-b90a42c33cd3f7c732d0f5d9233facc90bebcac0.zip
Remove common types that are mostly unused
-rw-r--r--README.md1
-rw-r--r--app/components/Switch.js4
-rw-r--r--app/types.js6
3 files changed, 1 insertions, 10 deletions
diff --git a/README.md b/README.md
index c3533c1327..a597fb06e1 100644
--- a/README.md
+++ b/README.md
@@ -118,7 +118,6 @@ it and behave accordingly.
- **main.js** - entry file for background process
- **routes.js** - routes configurator
- **transitions.js** - transition rules between views
- - **types.js** - common Flow types used across the app
- **build.sh** - Builds the backend in release mode. Will be extended to take care of more parts
of the release compiling and packaging.
- **Cargo.toml** - Main Rust workspace definition. See this file for which folders here are backend
diff --git a/app/components/Switch.js b/app/components/Switch.js
index f0ad3b41bc..b3f2f58a58 100644
--- a/app/components/Switch.js
+++ b/app/components/Switch.js
@@ -1,8 +1,6 @@
// @flow
import React, { Component } from 'react';
-import type { Point2d } from '../types';
-
const CLICK_TIMEOUT = 1000;
const MOVE_THRESHOLD = 10;
@@ -24,7 +22,7 @@ export default class Switch extends Component {
state = {
ignoreChange: false,
- initialPos: ({x: 0, y: 0}: Point2d),
+ initialPos: {x: 0, y: 0},
startTime: (null: ?number)
}
diff --git a/app/types.js b/app/types.js
deleted file mode 100644
index 3e247a875a..0000000000
--- a/app/types.js
+++ /dev/null
@@ -1,6 +0,0 @@
-// @flow
-export type Point2d = {
- x: number;
- y: number;
-};
-export type Coordinate2d = [number, number];