summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Griffis <pgriffis@igalia.com>2020-11-09 15:41:34 -0600
committerPatrick Griffis <pgriffis@igalia.com>2020-11-09 15:41:34 -0600
commit4998ae35d06aa67b841eee0100d4869e001670b1 (patch)
tree878d2d52cc8bbd8593d59766441f7d3ce0d3338f
parent11cc820ea63de60d675e9ac124fabf909f8105b9 (diff)
downloadlibsoup-4998ae35d06aa67b841eee0100d4869e001670b1.tar.gz
Delete unused resources
-rw-r--r--libsoup/directory.css70
-rw-r--r--libsoup/directory.js76
-rw-r--r--libsoup/meson.build7
-rw-r--r--libsoup/soup.gresource.xml7
4 files changed, 0 insertions, 160 deletions
diff --git a/libsoup/directory.css b/libsoup/directory.css
deleted file mode 100644
index 82e86516..00000000
--- a/libsoup/directory.css
+++ /dev/null
@@ -1,70 +0,0 @@
-:root {
- background-color: #f6f5f4;
-}
-
-a {
- text-decoration: none;
-}
-
-a:hover {
- text-decoration: underline;
-}
-
-table {
- width: 100%;
- table-layout: fixed;
- margin: 0 auto;
-}
-
-th > a {
- color: inherit;
-}
-
-table[order] > thead > tr > th::after {
- display: none;
- width: .8em;
- margin-inline-end: -.8em;
- text-align: end;
-}
-
-table[order="asc"] > thead > tr > th::after {
- content: "\2193";
-}
-table[order="desc"] > thead > tr > th::after {
- content: "\2191";
-}
-
-table[order][order-by="0"] > thead > tr > th:first-child > a ,
-table[order][order-by="1"] > thead > tr > th:first-child + th > a ,
-table[order][order-by="2"] > thead > tr > th:first-child + th + th > a {
- text-decoration: underline;
-}
-
-table[order][order-by="0"] > thead > tr > th:first-child::after ,
-table[order][order-by="1"] > thead > tr > th:first-child + th::after ,
-table[order][order-by="2"] > thead > tr > th:first-child + th + th::after {
- display: inline-block;
-}
-
-td:first-child {
- max-width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-tr:nth-child(even) {
- background-color: #f2f2f2;
-}
-
-@media (min-width: 550px) {
- body {
- padding: 3em;
- background-color: white;
- border-radius: 1em;
- border: 2px solid rgba(211, 215, 207);
- max-width: 65em;
- margin: 2em auto;
- }
-}
-
diff --git a/libsoup/directory.js b/libsoup/directory.js
deleted file mode 100644
index b1380bd8..00000000
--- a/libsoup/directory.js
+++ /dev/null
@@ -1,76 +0,0 @@
-
-/* This code is based on Firefox directory listing, distributed under
- * Mozilla Public License.
- */
-
-'use strict';
-
-var gTable, gOrderBy, gTBody, gRows;
-
-document.addEventListener("DOMContentLoaded", function() {
- gTable = document.getElementsByTagName("table")[0];
- gTBody = gTable.tBodies[0];
- if (gTBody.rows.length < 2)
- return;
- var headCells = gTable.tHead.rows[0].cells;
-
- function rowAction(i) {
- return function(event) {
- event.preventDefault();
- orderBy(i);
- }
- }
-
- for (var i = headCells.length - 1; i >= 0; i--) {
- var anchor = document.createElement("a");
- anchor.href = "";
- anchor.appendChild(headCells[i].firstChild);
- headCells[i].appendChild(anchor);
- headCells[i].addEventListener("click", rowAction(i), true);
- }
- gTable.setAttribute("order", "");
- orderBy(0);
-}, "false");
-
-function compareRows(rowA, rowB) {
- var a = rowA.cells[gOrderBy].getAttribute("sortable-data") || rowA.cells[gOrderBy].innerHTML;
- var b = rowB.cells[gOrderBy].getAttribute("sortable-data") || rowB.cells[gOrderBy].innerHTML;
- var intA = +a;
- var intB = +b;
- if (a == intA && b == intB) {
- a = intA;
- b = intB;
- } else {
- a = a.toLowerCase();
- b = b.toLowerCase();
- }
- if (a < b)
- return -1;
- if (a > b)
- return 1;
- return 0;
-}
-
-function orderBy(column) {
- if (!gRows)
- gRows = Array.from(gTBody.rows);
- var order;
- if (gOrderBy == column) {
- order = gTable.getAttribute("order") == "asc" ? "desc" : "asc";
- } else {
- order = "asc";
- gOrderBy = column;
- gTable.setAttribute("order-by", column);
- gRows.sort(compareRows);
- }
- gTable.removeChild(gTBody);
- gTable.setAttribute("order", order);
- if (order == "asc")
- for (var i = 0; i < gRows.length; i++)
- gTBody.appendChild(gRows[i]);
- else
- for (var i = gRows.length - 1; i >= 0; i--)
- gTBody.appendChild(gRows[i]);
- gTable.appendChild(gTBody);
-}
-
diff --git a/libsoup/meson.build b/libsoup/meson.build
index 7ea197b7..001feae1 100644
--- a/libsoup/meson.build
+++ b/libsoup/meson.build
@@ -3,14 +3,7 @@ subdir('include')
pkg = import('pkgconfig')
-resources = gnome.compile_resources('soup-resources',
- 'soup.gresource.xml',
- c_name: 'soup',
- source_dir: '.'
-)
-
soup_sources = [
- resources,
'auth/soup-auth.c',
'auth/soup-auth-basic.c',
'auth/soup-auth-digest.c',
diff --git a/libsoup/soup.gresource.xml b/libsoup/soup.gresource.xml
deleted file mode 100644
index da3ad10b..00000000
--- a/libsoup/soup.gresource.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<gresources>
- <gresource prefix="/org/gnome/libsoup">
- <file>directory.css</file>
- <file>directory.js</file>
- </gresource>
-</gresources>