Remove unused code

This commit is contained in:
Kovid Goyal 2017-08-22 18:04:40 +05:30
parent 00e3ea8c08
commit adbce71fb4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -45,9 +45,7 @@ class CellProgram(ShaderProgram):
def load_shader_programs():
vert, frag = load_shaders('cell')
vert = vert.replace('STRIDE', str(DATA_CELL_SIZE))
cell = CellProgram(vert, frag)
cell = CellProgram(*load_shaders('cell'))
cursor = ShaderProgram(*load_shaders('cursor'))
cursor.vao_id = cursor.add_vertex_arrays()
return cell, cursor