[vlma-devel] commit: Remove dead code. (Adrien Grand )

git version control git at videolan.org
Sun Jan 25 06:43:52 CET 2009


vlma | branch: master | Adrien Grand <jpountz at videolan.org> | Sun Jan 25 06:29:48 2009 +0100| [5548feacb8f52e6ab4231e3a965528ee0e65d764] | committer: Adrien Grand 

Remove dead code.

> http://git.videolan.org/gitweb.cgi/vlma.git/?a=commit;h=5548feacb8f52e6ab4231e3a965528ee0e65d764
---

 vlma-swing-client/.gitignore                       |    5 -
 vlma-swing-client/pom.xml                          |   90 --------------------
 .../groovy/org/videolan/vlma/client/client.groovy  |   84 ------------------
 3 files changed, 0 insertions(+), 179 deletions(-)

diff --git a/vlma-swing-client/.gitignore b/vlma-swing-client/.gitignore
deleted file mode 100644
index 26f4a9a..0000000
--- a/vlma-swing-client/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-bin-groovy
-.classpath
-.project
-.settings
-target
diff --git a/vlma-swing-client/pom.xml b/vlma-swing-client/pom.xml
deleted file mode 100644
index a9884d3..0000000
--- a/vlma-swing-client/pom.xml
+++ /dev/null
@@ -1,90 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
-  Copyright (C) 2008 the VideoLAN team
-
-  This file is part of VLMa.
-
-  VLMa 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.
-
-  VLMa 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 VLMa. If not, see <http://www.gnu.org/licenses/>.
-  -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
-    <parent>
-        <groupId>org.videolan.vlma</groupId>
-        <artifactId>vlma-parent</artifactId>
-        <version>0.3-SNAPSHOT</version>
-    </parent>
-
-    <artifactId>vlma-swing-client</artifactId>
-    <name>VLMa - Swing client</name>
-    <description>A Swing client to the VLMa daemon</description>
-    <modelVersion>4.0.0</modelVersion>
-    <packaging>jar</packaging>
-
-    <build>
-        <plugins>
-            <plugin>
-                <artifactId>maven-assembly-plugin</artifactId>
-                <configuration>
-                    <appendAssemblyId>true</appendAssemblyId>
-                    <descriptorRefs>
-                        <descriptorRef>jar-with-dependencies</descriptorRef>
-                    </descriptorRefs>
-                    <archive>
-                        <manifest>
-                            <mainClass>org.videolan.vlma.client.Client</mainClass>
-                        </manifest>
-                    </archive>
-                </configuration>
-                <executions>
-                    <execution>
-                        <id>make-assembly</id>
-                        <phase>package</phase>
-                        <goals>
-                            <goal>attached</goal>
-                        </goals>
-                    </execution>
-                </executions>
-            </plugin>
-            <plugin>
-                <groupId>org.codehaus.groovy.maven</groupId>
-                <artifactId>gmaven-plugin</artifactId>
-                <executions>
-                    <execution>
-                        <goals>
-                            <goal>compile</goal>
-                        </goals>
-                    </execution>
-                </executions>
-            </plugin>
-        </plugins>
-    </build>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.codehaus.groovy.maven.runtime</groupId>
-            <artifactId>gmaven-runtime-default</artifactId>
-            <version>1.0-rc-2</version>
-        </dependency>
-        <dependency>
-            <groupId>org.videolan.vlma</groupId>
-            <artifactId>vlma-api</artifactId>
-            <version>${project.version}</version>
-        </dependency>
-    </dependencies>
-
-</project>
diff --git a/vlma-swing-client/src/main/groovy/org/videolan/vlma/client/client.groovy b/vlma-swing-client/src/main/groovy/org/videolan/vlma/client/client.groovy
deleted file mode 100644
index b88bfc0..0000000
--- a/vlma-swing-client/src/main/groovy/org/videolan/vlma/client/client.groovy
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * Copyright (C) 2008 the VideoLAN team
- *
- * This file is part of VLMa.
- *
- * VLMa 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.
- *
- * VLMa 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 VLMa. If not, see <http://www.gnu.org/licenses/>.
- *
- */
-
-package org.videolan.vlma.client
-
-import groovy.swing.SwingBuilder
-import java.awt.*
-import java.rmi.registry.*
-import javax.swing.*
-
-import org.videolan.vlma.Data
-
-/**
- * A sample Swing client for VLMa daemon.
- */
-class Client {
-
-    private static data
-
-    static getData() {
-        if (data != null) {
-            return data
-        } else {
-            def registry = LocateRegistry.getRegistry(9050)
-            data = (Data) registry.lookup("VLMaDataService")
-            return data
-        }
-    }
-
-    static void main(args) {
-        def swing = new SwingBuilder()
-        def frame = swing.frame(title: "VLMa Swing Client",
-                layout: new BorderLayout(),
-                defaultCloseOperation: JFrame.EXIT_ON_CLOSE
-        ) {
-            tabbedPane(tabPlacement: JTabbedPane.TOP) {
-                panel(name: "Welcome", constraints:BorderLayout.CENTER, layout: new BorderLayout()) {
-                    label(text: "Streaming state", constraints:BorderLayout.NORTH)
-                    panel(constraints:BorderLayout.CENTER) {
-                        scrollPane() {
-                            streamedMedias = new JTable((String[][]) getData().getMedias()
-                                    .findAll({ it.getProgram() != null })
-                                    .collect({ [it.getName(), it.getProgram().getPriority(), it.getProgram().getPlayer() ?: "Not assigned"] }),
-                                    (String[]) ["Name", "Priority", "Assigned to"])
-                            widget(streamedMedias)
-                        }
-                    }
-                }
-                panel(name: "Servers", constraints:BorderLayout.CENTER, layout: new BorderLayout()) {
-                    label(text: "Servers", constraints:BorderLayout.NORTH)
-                    panel(constraints:BorderLayout.CENTER) {
-                        scrollPane() {
-                            servers = new JTable((String[][]) getData().getServers()
-                                    .collect({ [it.getName(), it.getIp(), it.isUp() ? "Yes" : "No"] }),
-                                    (String[]) ["Name", "Address", "Up?"])
-                            widget(servers)
-                        }
-                    }
-                }
-            }
-        }
-        frame.pack()
-        frame.setSize(250, 300);
-        frame.show()
-    }
-
-}



More information about the vlma-devel mailing list