]> git.mxchange.org Git - friendica.git/commitdiff
Removed some unused tables and functions
authorMichael <heluecht@pirati.ca>
Tue, 5 Dec 2017 21:54:13 +0000 (21:54 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 5 Dec 2017 21:54:13 +0000 (21:54 +0000)
database.sql
include/dbstructure.php
include/fcontact.php [deleted file]

index 09f1a83cc14cd38fac7e8a021c092a09b5b5b7ad..c058c06f51803750bde65d6fe233ae8825bf85fa 100644 (file)
@@ -274,29 +274,6 @@ CREATE TABLE IF NOT EXISTS `fcontact` (
         UNIQUE INDEX `url` (`url`(190))
 ) DEFAULT COLLATE utf8mb4_general_ci;
 
---
--- TABLE ffinder
---
-CREATE TABLE IF NOT EXISTS `ffinder` (
-       `id` int(10) unsigned NOT NULL auto_increment,
-       `uid` int(10) unsigned NOT NULL DEFAULT 0,
-       `cid` int(10) unsigned NOT NULL DEFAULT 0,
-       `fid` int(10) unsigned NOT NULL DEFAULT 0,
-        PRIMARY KEY(`id`)
-) DEFAULT COLLATE utf8mb4_general_ci;
-
---
--- TABLE fserver
---
-CREATE TABLE IF NOT EXISTS `fserver` (
-       `id` int(11) NOT NULL auto_increment,
-       `server` varchar(255) NOT NULL DEFAULT '',
-       `posturl` varchar(255) NOT NULL DEFAULT '',
-       `key` text,
-        PRIMARY KEY(`id`),
-        INDEX `server` (`server`(32))
-) DEFAULT COLLATE utf8mb4_general_ci;
-
 --
 -- TABLE fsuggest
 --
index 3c620d7d72ae476cc3e437f1452f92c07a535361..1e47ee9edbea3f6dcbb7a462255f40ef97e41813 100644 (file)
@@ -888,29 +888,6 @@ function db_definition() {
                                        "url" => array("UNIQUE", "url(190)"),
                                        )
                        );
-       $database["ffinder"] = array(
-                       "fields" => array(
-                                       "id" => array("type" => "int(10) unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1"),
-                                       "uid" => array("type" => "int(10) unsigned", "not null" => "1", "default" => "0", "relation" => array("user" => "uid")),
-                                       "cid" => array("type" => "int(10) unsigned", "not null" => "1", "default" => "0", "relation" => array("contact" => "id")),
-                                       "fid" => array("type" => "int(10) unsigned", "not null" => "1", "default" => "0", "relation" => array("fcontact" => "id")),
-                                       ),
-                       "indexes" => array(
-                                       "PRIMARY" => array("id"),
-                                       )
-                       );
-       $database["fserver"] = array(
-                       "fields" => array(
-                                       "id" => array("type" => "int(11)", "not null" => "1", "extra" => "auto_increment", "primary" => "1"),
-                                       "server" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
-                                       "posturl" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
-                                       "key" => array("type" => "text"),
-                                       ),
-                       "indexes" => array(
-                                       "PRIMARY" => array("id"),
-                                       "server" => array("server(32)"),
-                                       )
-                       );
        $database["fsuggest"] = array(
                        "fields" => array(
                                        "id" => array("type" => "int(11)", "not null" => "1", "extra" => "auto_increment", "primary" => "1"),
diff --git a/include/fcontact.php b/include/fcontact.php
deleted file mode 100644 (file)
index 7e93d06..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-use Friendica\Database\DBM;
-
-function fcontact_store($url,$name,$photo) {
-
-       $nurl = str_replace(array('https:','//www.'), array('http:','//'), $url);
-
-       $r = q("SELECT `id` FROM `fcontact` WHERE `url` = '%s' LIMIT 1",
-               dbesc($nurl)
-       );
-
-       if (DBM::is_result($r))
-               return $r[0]['id'];
-
-       $r = dba::insert('fcontact', array('url' => $nurl, 'name' => $name, 'photo' => $photo));
-
-       if (DBM::is_result($r)) {
-               $r = q("SELECT `id` FROM `fcontact` WHERE `url` = '%s' LIMIT 1",
-                       dbesc($nurl)
-               );
-               if (DBM::is_result($r))
-                       return $r[0]['id'];
-       }
-
-       return 0;
-}
-
-function ffinder_store($uid,$cid,$fid) {
-       $r = dba::insert('ffinder', array('uid' => $uid, 'cid' => $cid, 'fid' => $fid));
-       return $r;
-}
-