summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2022-08-29 11:15:12 +0300
committerYuval Adam <_@yuv.al>2022-08-29 11:15:12 +0300
commit06c7f6f6e17ce089800ea4ba14ee02924a040223 (patch)
treefe8089be0f6dce876656a914981165c3aa6d4f8d /src
parent842d239f40310923cb8d9f53e80167dca0aebff9 (diff)
Remove unused geolocation func
Diffstat (limited to 'src')
-rw-r--r--src/Geshem.tsx19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/Geshem.tsx b/src/Geshem.tsx
index 5fda053..a74af61 100644
--- a/src/Geshem.tsx
+++ b/src/Geshem.tsx
@@ -76,23 +76,4 @@ function Geshem({ date }: GeshemProps) {
);
}
-function getGeolocation() {
- if (navigator.geolocation) {
- navigator.geolocation.getCurrentPosition(pos => {
- const { longitude, latitude } = pos.coords;
- this.setState({
- lng: longitude,
- lat: latitude,
- zoom: 11
- });
- if (this.state.mapLoaded) {
- this.map.jumpTo({
- center: [longitude, latitude],
- zoom: 11
- });
- }
- });
- }
-}
-
export default App;