Browse Source

connections: remove unused getSchema procedure

This change removes unused code.

Change-Id: Ic2fcf447b9a2e5c2e97749a5d1630e0ac91dd318
changes/45/637445/1
Tristan Cacqueray 2 years ago
parent
commit
820a035e44
6 changed files with 0 additions and 36 deletions
  1. +0
    -6
      zuul/driver/gerrit/gerritconnection.py
  2. +0
    -7
      zuul/driver/git/gitconnection.py
  3. +0
    -6
      zuul/driver/github/githubconnection.py
  4. +0
    -5
      zuul/driver/mqtt/mqttconnection.py
  5. +0
    -6
      zuul/driver/smtp/smtpconnection.py
  6. +0
    -6
      zuul/driver/sql/sqlconnection.py

+ 0
- 6
zuul/driver/gerrit/gerritconnection.py View File

@ -26,7 +26,6 @@ import pprint
import shlex
import queue
import urllib.parse
import voluptuous as v
import requests
from typing import Dict, List
@ -1079,8 +1078,3 @@ class GerritConnection(BaseConnection):
def _start_event_connector(self):
self.gerrit_event_connector = GerritEventConnector(self)
self.gerrit_event_connector.start()
def getSchema():
gerrit_connection = v.Any(str, v.Schema(dict))
return gerrit_connection

+ 0
- 7
zuul/driver/git/gitconnection.py View File

@ -20,8 +20,6 @@ import logging
import urllib
import threading
import voluptuous as v
from zuul.connection import BaseConnection
from zuul.driver.git.gitmodel import GitTriggerEvent, EMPTY_GIT_REF
from zuul.model import Ref, Branch
@ -252,8 +250,3 @@ class GitConnection(BaseConnection):
self.baseurl,
self.poll_timeout)
self.watcher_thread.start()
def getSchema():
git_connection = v.Any(str, v.Schema(dict))
return git_connection

+ 0
- 6
zuul/driver/github/githubconnection.py View File

@ -32,7 +32,6 @@ from cachecontrol.heuristics import BaseHeuristic
import iso8601
import jwt
import requests
import voluptuous as v
import github3
import github3.exceptions
@ -1614,8 +1613,3 @@ def _status_as_tuple(status):
context = status.get('context')
state = status.get('state')
return (user, context, state)
def getSchema():
github_connection = v.Any(str, v.Schema(dict))
return github_connection

+ 0
- 5
zuul/driver/mqtt/mqttconnection.py View File

@ -15,7 +15,6 @@
import logging
import json
import voluptuous as v
import paho.mqtt.client as mqtt
from zuul.connection import BaseConnection
@ -82,7 +81,3 @@ class MQTTConnection(BaseConnection):
except Exception:
self.log.exception(
"Could not publish message to topic '%s' via mqtt", topic)
def getSchema():
return v.Any(str, v.Schema(dict))

+ 0
- 6
zuul/driver/smtp/smtpconnection.py View File

@ -13,7 +13,6 @@
# under the License.
import logging
import voluptuous as v
import smtplib
from email.mime.text import MIMEText
@ -66,8 +65,3 @@ class SMTPConnection(BaseConnection):
s.quit()
except Exception as e:
self.log.warning("Error sending mail via SMTP: %s", e)
def getSchema():
smtp_connection = v.Any(str, v.Schema(dict))
return smtp_connection

+ 0
- 6
zuul/driver/sql/sqlconnection.py View File

@ -21,7 +21,6 @@ import sqlalchemy as sa
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import orm
import sqlalchemy.pool
import voluptuous
from zuul.connection import BaseConnection
@ -320,8 +319,3 @@ class SQLConnection(BaseConnection):
"""Return a list of BuildSet objects"""
with self.getSession() as db:
return db.getBuildsets(*args, **kw)
def getSchema():
sql_connection = voluptuous.Any(str, voluptuous.Schema(dict))
return sql_connection

Loading…
Cancel
Save