diff --git a/module/doc/model.php b/module/doc/model.php
index 4317ff9d3d..6c2114ca4a 100644
--- a/module/doc/model.php
+++ b/module/doc/model.php
@@ -1889,31 +1889,6 @@ class docModel extends model
return $statistic;
}
- /**
- * Build browse switch button.
- *
- * @param int $type
- * @param int $objectID
- * @param int $viewType
- * @param string $orderBy
- * @param int $recTotal
- * @param int $recPerPage
- * @param int $pageID
- * @param string $searchTitle
- *
- * @access public
- * @return void
- */
- public function buildBrowseSwitch($type, $objectID, $viewType, $orderBy = 't1.id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1, $searchTitle = '')
- {
- $html = "
";
- $html .= html::a(inlink('showFiles', "type=$type&objectID=$objectID&viewType=card&orderBy=$orderBy&recTotal=$recTotal&recPerPage=$recPerPage&pageID=$pageID&searchTitle=$searchTitle"), "", '', "title={$this->lang->doc->browseTypeList['grid']} class='btn btn-icon" . ($viewType != 'list' ? ' text-primary' : '') . "' data-app='{$this->app->tab}'");
- $html .= html::a(inlink('showFiles', "type=$type&objectID=$objectID&viewType=list&orderBy=$orderBy&recTotal=$recTotal&recPerPage=$recPerPage&pageID=$pageID&searchTitle=$searchTitle"), "", '', "title={$this->lang->doc->browseTypeList['list']} class='btn btn-icon" . ($viewType == 'list' ? ' text-primary' : '') . "' data-app='{$this->app->tab}'");
- $html .= "
";
-
- return $html;
- }
-
/**
* Set past menu.
*
diff --git a/module/doc/test/doc.class.php b/module/doc/test/doc.class.php
index 1c30df3c35..231f8d1ce8 100644
--- a/module/doc/test/doc.class.php
+++ b/module/doc/test/doc.class.php
@@ -420,15 +420,6 @@ class docTest
return $objects;
}
- public function buildBrowseSwitchTest($type, $objectID, $viewType)
- {
- $objects = $this->objectModel->buildBrowseSwitch($type, $objectID, $viewType);
-
- if(dao::isError()) return dao::getError();
-
- return $objects;
- }
-
public function setFastMenuTest($fastLib)
{
$objects = $this->objectModel->setFastMenu($fastLib);
diff --git a/module/doc/test/model/buildbrowseswitch.php b/module/doc/test/model/buildbrowseswitch.php
deleted file mode 100755
index 4c470a8866..0000000000
--- a/module/doc/test/model/buildbrowseswitch.php
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/usr/bin/env php
-buildBrowseSwitch();
-cid=1
-pid=1
-
-
-
-*/
-
-$doc = new docTest();
-
-r($doc->buildBrowseSwitchTest()) && p() && e();
\ No newline at end of file