aboutsummaryrefslogtreecommitdiff
path: root/src/renderer/mod.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-06-09 08:30:55 -0700
committerJoe Wilm <joe@jwilm.com>2016-06-09 08:30:55 -0700
commit8566e17860933ef1da36a88b5d3fd839352065b8 (patch)
treeb6c0dc4502b200a024f748b018b82116c9d588ac /src/renderer/mod.rs
parenta60dbd564b44161f92a26ae401cf9b3ce5add982 (diff)
downloadalacritty-8566e17860933ef1da36a88b5d3fd839352065b8.tar.gz
alacritty-8566e17860933ef1da36a88b5d3fd839352065b8.zip
Fix all trivial compiler warnings
Of note are the `ansi` and `grid` modules becoming public. There are several bits of unused code in each of these. In the case of `grid`, the unused parts are generally useful, like some indexing implementations. In ansi, there are pieces that will be used once the parser is more complete. In any case, these modules are fairly generic and mostly usable outside of Alacritty. Unused cargo packages were also removed.
Diffstat (limited to 'src/renderer/mod.rs')
-rw-r--r--src/renderer/mod.rs18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs
index 87dfe84e..a0051aaa 100644
--- a/src/renderer/mod.rs
+++ b/src/renderer/mod.rs
@@ -3,13 +3,12 @@ use std::ffi::CString;
use std::fs::File;
use std::io::{self, Read};
use std::mem::size_of;
-use std::path::{PathBuf, Path};
+use std::path::{PathBuf};
use std::ptr;
use std::sync::Arc;
use std::sync::atomic::{Ordering, AtomicBool};
-use cgmath::{self, Matrix};
-use euclid::{Rect, Size2D, Point2D};
+use cgmath;
use gl::types::*;
use gl;
use notify::{Watcher as WatcherApi, RecommendedWatcher as Watcher, op};
@@ -185,12 +184,6 @@ pub struct PackedVertex {
}
#[derive(Debug)]
-struct ElementIndex {
- col: u32, // x
- row: u32, // y
-}
-
-#[derive(Debug)]
pub struct Batch {
tex: GLuint,
instances: Vec<InstanceData>,
@@ -616,13 +609,6 @@ impl<'a> Drop for RenderApi<'a> {
}
}
-fn get_rect(glyph: &Glyph, x: f32, y: f32) -> Rect<f32> {
- Rect::new(
- Point2D::new(x + glyph.left as f32, y - (glyph.height - glyph.top) as f32),
- Size2D::new(glyph.width as f32, glyph.height as f32)
- )
-}
-
impl ShaderProgram {
pub fn activate(&self) {
unsafe {