diff --git a/packages/edit-site/src/components/site-editor-routes/templates.js b/packages/edit-site/src/components/site-editor-routes/templates.js
index 06ba07fcd06595..cb9f650bbf9267 100644
--- a/packages/edit-site/src/components/site-editor-routes/templates.js
+++ b/packages/edit-site/src/components/site-editor-routes/templates.js
@@ -1,29 +1,10 @@
-/**
- * WordPress dependencies
- */
-import { privateApis as routerPrivateApis } from '@wordpress/router';
-
/**
* Internal dependencies
*/
import Editor from '../editor';
import SidebarNavigationScreenTemplatesBrowse from '../sidebar-navigation-screen-templates-browse';
-import { unlock } from '../../lock-unlock';
import PageTemplates from '../page-templates';
-const { useLocation } = unlock( routerPrivateApis );
-
-function MobileTemplatesView() {
- const { query = {} } = useLocation();
- const { canvas = 'view' } = query;
-
- return canvas === 'edit' ? (
-
- ) : (
-
- );
-}
-
export const templatesRoute = {
name: 'templates',
path: '/template',
@@ -34,7 +15,7 @@ export const templatesRoute = {
const isListView = query.layout === 'list';
return isListView ? : undefined;
},
- mobile: ,
+ mobile: ,
},
widths: {
content( { query } ) {