diff options
author | Marcus Lundblad <ml@dfupdate.se> | 2022-06-22 22:32:20 +0200 |
---|---|---|
committer | Marcus Lundblad <ml@dfupdate.se> | 2022-06-26 21:16:33 +0200 |
commit | 6c47f97480d8c5c55468f4d90338937117283083 (patch) | |
tree | 05dfa5dd597fa2d53608b2883663b91ae9244b75 | |
parent | 3f66c2ee02ddac551d1c4794fac617cc7ea8034e (diff) | |
download | gnome-maps-6c47f97480d8c5c55468f4d90338937117283083.tar.gz |
Remove ContactPlace
-rw-r--r-- | src/contactPlace.js | 47 | ||||
-rw-r--r-- | src/org.gnome.Maps.src.gresource.xml.in | 1 |
2 files changed, 0 insertions, 48 deletions
diff --git a/src/contactPlace.js b/src/contactPlace.js deleted file mode 100644 index 255d0e9f..00000000 --- a/src/contactPlace.js +++ /dev/null @@ -1,47 +0,0 @@ -/* -*- Mode: JS2; indent-tabs-mode: nil; js2-basic-offset: 4 -*- */ -/* vim: set et ts=4 sw=4: */ -/* - * Copyright (c) 2015 Jonas Danielsson - * - * GNOME Maps is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2 of the License, or (at your - * option) any later version. - * - * GNOME Maps is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * for more details. - * - * You should have received a copy of the GNU General Public License along - * with GNOME Maps; if not, see <http://www.gnu.org/licenses/>. - * - * Author: Jonas Danielsson <jonas@threetimestwo.org> - */ - -import GObject from 'gi://GObject'; - -import {Place} from './place.js'; - -export class ContactPlace extends Place { - constructor(params) { - let contact = params.contact; - delete params.contact; - - params.store = false; - super(params); - this._contact = contact; - } - - get icon() { - return this._contact.icon; - } - - get uniqueID() { - return [this.name, - this.osm_type, - this.osm_id].join('-'); - } -} - -GObject.registerClass(ContactPlace); diff --git a/src/org.gnome.Maps.src.gresource.xml.in b/src/org.gnome.Maps.src.gresource.xml.in index 72a4b3bc..84abec3f 100644 --- a/src/org.gnome.Maps.src.gresource.xml.in +++ b/src/org.gnome.Maps.src.gresource.xml.in @@ -5,7 +5,6 @@ <file>application.js</file> <file>boundingBox.js</file> <file>color.js</file> - <file>contactPlace.js</file> <file>contextMenu.js</file> <file>constants.js</file> <file>epaf.js</file> |