mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-03-10 16:30:06 -04:00
main: Remove unused function.
This commit is contained in:
parent
31ab200763
commit
65d1401b76
@ -1,7 +1,6 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from ipaddress import ip_address
|
from ipaddress import ip_address
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
@ -15,13 +14,9 @@ from logbook import StderrHandler
|
|||||||
|
|
||||||
from aiohttp import web
|
from aiohttp import web
|
||||||
|
|
||||||
from nio import EncryptionError
|
|
||||||
|
|
||||||
from pantalaimon.ui import GlibT
|
from pantalaimon.ui import GlibT
|
||||||
from pantalaimon.log import logger
|
from pantalaimon.log import logger
|
||||||
from pantalaimon.daemon import ProxyDaemon
|
from pantalaimon.daemon import ProxyDaemon
|
||||||
from pantalaimon.client import PanClient
|
|
||||||
from pantalaimon.store import PanStore
|
|
||||||
|
|
||||||
|
|
||||||
async def init(homeserver, http_proxy, ssl, send_queue, recv_queue):
|
async def init(homeserver, http_proxy, ssl, send_queue, recv_queue):
|
||||||
@ -86,19 +81,6 @@ class ipaddress(click.ParamType):
|
|||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
||||||
def _find_device(user):
|
|
||||||
data_dir = user_data_dir("pantalaimon", "")
|
|
||||||
store = PanStore(data_dir)
|
|
||||||
accounts = store.load_all_users()
|
|
||||||
|
|
||||||
for user_id, device in accounts:
|
|
||||||
if user == user_id:
|
|
||||||
return device
|
|
||||||
|
|
||||||
click.echo("No such user/device combination found.")
|
|
||||||
sys.exit()
|
|
||||||
|
|
||||||
|
|
||||||
@click.command(
|
@click.command(
|
||||||
help=("pantalaimon is a reverse proxy for matrix homeservers that "
|
help=("pantalaimon is a reverse proxy for matrix homeservers that "
|
||||||
"transparently encrypts and decrypts messages for clients that "
|
"transparently encrypts and decrypts messages for clients that "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user