mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-23 20:42:06 +01:00
Remove unnecessary class
This commit is contained in:
parent
aeab6504a7
commit
5edd630fd0
2 changed files with 0 additions and 39 deletions
|
@ -1,31 +0,0 @@
|
|||
/**
|
||||
*
|
||||
* Copyright 2017 Paul Schaub
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jivesoftware.smackx.jingle;
|
||||
|
||||
import org.jivesoftware.smackx.jingle.component.JingleContent;
|
||||
|
||||
/**
|
||||
* User callback that the user can use to control a jingle content.
|
||||
*/
|
||||
public abstract class Callback {
|
||||
|
||||
private final JingleContent content;
|
||||
|
||||
public Callback(JingleContent content) {
|
||||
this.content = content;
|
||||
}
|
||||
}
|
|
@ -16,10 +16,8 @@
|
|||
*/
|
||||
package org.jivesoftware.smackx.jingle.component;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
@ -32,7 +30,6 @@ import org.jivesoftware.smack.packet.XMPPError;
|
|||
import org.jivesoftware.smack.util.Async;
|
||||
import org.jivesoftware.smack.util.StringUtils;
|
||||
import org.jivesoftware.smackx.bytestreams.BytestreamSession;
|
||||
import org.jivesoftware.smackx.jingle.Callback;
|
||||
import org.jivesoftware.smackx.jingle.JingleManager;
|
||||
import org.jivesoftware.smackx.jingle.JingleTransportManager;
|
||||
import org.jivesoftware.smackx.jingle.adapter.JingleDescriptionAdapter;
|
||||
|
@ -65,7 +62,6 @@ public class JingleContent implements JingleTransportCallback, JingleSecurityCal
|
|||
|
||||
private JingleTransport<?> pendingReplacingTransport = null;
|
||||
|
||||
private final List<Callback> callbacks = Collections.synchronizedList(new ArrayList<Callback>());
|
||||
private final Set<String> transportBlacklist = Collections.synchronizedSet(new HashSet<String>());
|
||||
|
||||
public JingleContent(JingleContentElement.Creator creator, JingleContentElement.Senders senders) {
|
||||
|
@ -297,10 +293,6 @@ public class JingleContent implements JingleTransportCallback, JingleSecurityCal
|
|||
|
||||
/* MISCELLANEOUS */
|
||||
|
||||
public void addCallback(Callback callback) {
|
||||
callbacks.add(callback);
|
||||
}
|
||||
|
||||
public JingleContentElement getElement() {
|
||||
JingleContentElement.Builder builder = JingleContentElement.getBuilder()
|
||||
.setName(name)
|
||||
|
|
Loading…
Reference in a new issue